package com.mrdeer.web.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.mrdeer.common.entity.sys.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SysUserMapper extends BaseMapper<User> {
    /**
     * 自定义sql分页
     *
     * @param page
     * @param queryWrapper 如果自定义的方法中需要用到wrapper查询条件，需要重写
     * @return
     */
    IPage<User> selectUserByPage(IPage<User> page, @Param(Constants.WRAPPER) Wrapper<User> queryWrapper);
}
